package test_package;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by IIGalytska on 01.04.14.
 */
public class CartWindow {
    private WebDriver driver;

    public CartWindow(WebDriver driver){

        this.driver = driver;
    }


    public CheckoutPage pressCheckoutButton(){

        driver.findElement(By.xpath("//*[@id=\"popup-checkout\"]/span/span/span")).click();
        return new CheckoutPage(driver);
    }


}